export const searchList = [
  {
    type: 'input',
    name: '教师姓名',
    field: 'teacherName',
  },
]

export const listColumns = [
  {
    title: '教师姓名',
    key: 'teacherName',
  },
  {
    title: '班级名称',
    key: 'clazzName',
  },
  {
    title: '综合得分',
    key: 'totalScore',
  },
  {
    title: '评价时间',
    key: 'createTime',
  },
]

export const actionArr = [
  {
    action: 'look',
    value: '查看',
  },
  {
    action: 'edit',
    value: '编辑',
  },
  {
    action: 'process',
    value: '办理',
  },
  {
    action: 'del',
    value: '删除',
  },
]
export const btnList = [
  {
    action: 'add',
    value: '新增',
    auth: ''
  }
];
export const rules = {
  teacherId: [
    { required: true, message: '请选择教师姓名', trigger: 'change' }
  ],
  studentName: [
    { required: true, message: '请输入学生姓名', trigger: 'blur' }
  ],
  clazzId: [
    { required: true, message: '请选择所在班级', trigger: 'change' }
  ],
  parentName: [
    { required: true, message: '请输入家长姓名', trigger: 'blur' }
  ],
  contactPhone: [
    { required: true, pattern: /^1[3-9]\d{9}$/,  message: '请输入联系电话', trigger: 'blur' },
  ],
  isAnonymousId: [
    { required: true, message: '请选择是否匿名', trigger: 'change' }
  ],
  scoreA: [
    { required: true, message: '请输入教学技能实用性评分', trigger: 'change' },
  ],
  scoreB: [
    { required: true, message: '请输入实训课程效果评分', trigger: 'change' },
  ],
  scoreC: [
    { required: true, message: '请输入就业指导有效性评分', trigger: 'change' },
  ],
  scoreD: [
    { required: true, message: '请输入师德师风表率评分', trigger: 'change' },
  ],
  scoreE: [
    { required: true, message: '请输入升学指导成效评分', trigger: 'change' },
  ],
  scoreF: [
    { required: true, message: '请输入学生管理能力评分', trigger: 'change' },
  ],
  scoreG: [
    { required: true, message: '请输入师生沟通情况评分', trigger: 'change' },
  ],
  scoreH: [
    { required: true, message: '请输入家校沟通态度评分', trigger: 'change' },
  ],
  scoreI: [
    { required: true, message: '请输入公平公正性评分', trigger: 'change' },
  ],
  scoreJ: [
    { required: true, message: '请输入行业经验体现评分', trigger: 'change' },
  ],
  totalScore: [
    { required: true, message: '综合得分自动计算', trigger: 'change' }
  ],
}